Non determinism through type isomorphism
نویسندگان
چکیده
Several non-deterministic extensions to the λ -calculus have been proposed, e.g. [6, 7, 10–12, 24]. In these approaches, the parallel composition (sometimes called the must-convergent parallel composition) is such that if r and s are two λ -terms, the term r+ s (also written r ‖ s) represents the computation that runs either r or s non-deterministically. It is common to consider in these approaches the associativity and commutativity of the operator +. Indeed the interpretation “either r or s runs” shall not prioritise any of them, and so “either s or r runs” must be represented by the same term. Moreover, (r+ s)t can run either rt or st, which is the same expressed by rt+ st. Extra equivalences (or rewrite rules, depending on the presentation) are set up to account for such an interpretation, e.g. (r+ s)t ↔ rt+ st. This right distributivity can alternatively be seen as the one of function sum: (f+ g)(x) is defined pointwise as f(x)+ g(x). This is the approach of the algebraic lambda-calculi [3, 26], two independently introduced algebraic extensions which resulted strongly related afterwards [4,15]. In these algebraic calculi, a scalar pondering each ‘choice’ is considered in addition to the sum of terms. Because of these equivalences between terms, it is natural to think that a typed version must allow some equivalences at the type level. Definitely, if r and s are typed with types A and B respectively, it is natural to expect that whatever connective tie these types in order to type r+ s, it must be commutative and associative. An independent stream of research is the study of isomorphisms between types for several languages (see [13] for a reference). For example, we know that the propositions A∧B and B∧A are equiprovable: one is provable if and only if the other is, but they do not have the same proofs. If r is a proof of A and s is a proof of B, then 〈r,s〉 is a proof of A∧B while 〈s,r〉 is a proof of B∧A. Despite that both proofs can be derived from the same hypotheses, they are not the same. In this paper, we show how the non-determinism arises naturally in a classic context only by introducing some equivalences between types. These equivalences, nevertheless, will be chosen among valid, well-known isomorphisms. In order to consider these isomorphic types as equivalent, we need to design a proof system such that they have the same proofs, or conversely, in order to consider these terms to be equivalent, we need to make these isomorphic types to be equivalent. Formally, two types A and B are isomorphic if there are two conversion functions f of type A ⇒ B and g of type B ⇒ A, such that g( f (x)) = x for any x of type A and f (g(y)) = y for any y of type B. Hence, in this system the conversion functions f and g should become and identity function. In other words, we take the quotient of the set of propositions by the relation
منابع مشابه
Process Algebra as Abstract Data Types
In this paper we introduced an algebraic semantics for process algebra in form of abstract data types. For that purpose, we developed a particular type ofΣ algebra, the seed algebra, which describes exactly the behavior of a process within a labeled transition system. We have shown the possibility of characterizing the bisimulation of two processes with the isomorphism of their corresponding se...
متن کاملA study of Determinism and Free-will in Persian Proverbs
Proverbs as a part of colloquial literature are always nourished by religion, culture, traditions, and philosophical beliefs of a community, and thus they mirror the common beliefs of a people. The frequent repletion of a proverb pregnant with a specific thought makes that type of thought a behavioral pattern and affects the actions and behaviors of the people of a society. In the Iranian socie...
متن کاملOn isomorphism of two bases in Morrey-Lebesgue type spaces
Double system of exponents with complex-valued coefficients is considered. Under some conditions on the coefficients, we prove that if this system forms a basis for the Morrey-Lebesgue type space on $left[-pi , pi right]$, then it is isomorphic to the classical system of exponents in this space.
متن کاملDynamic Determinism Checking for Structured Parallelism
Determinism is a powerful property, making it much easier to design, implement, and debug parallel programs when it can be guaranteed. There has been much work on guaranteeing determinism of programs, both through dynamic and static approaches. The dynamic approaches tend to have high overheads, while the static approaches can be difficult for non-experts to understand and can require high prog...
متن کاملA comparative study of Determinism in the poems of IlyaAbuMadi, Khayyam and Hafiz
The question of determinism is one of the very old issues that has always preoccupied human mind. The key question is whether one is autonomous in onechr('39')s actions or they do not have any intentional behavior and that all they do is through deterministic measures. In this descriptive-analytic article, we attempt to examine the issue of determinism and authoritarianism in the poems of ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2012